package Staff;

import Organization.Department;

public class FulltimeStaff implements Staff {
    private String name;
    private double weeklyPay;
    private int workHours;

    @Override
    public void accept(Department handler) {
        handler.analyze(this);
    }

    public FulltimeStaff(String name, double weeklyPay, int workHours) {
        this.name = name;
        this.weeklyPay = weeklyPay;
        this.workHours = workHours;
    }

    public String getName() {
        return name;
    }

    public double getWeeklyPay() {
        return weeklyPay;
    }

    public int getWorkHours() {
        return workHours;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setWeeklyPay(double weeklyPay) {
        this.weeklyPay = weeklyPay;
    }

    public void setWorkHours(int workHours) {
        this.workHours = workHours;
    }
}//get和set方法
